package org.linlinjava.litemall.db.dao;

import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Select;
import org.linlinjava.litemall.db.domain.LumiereCoupon;
import java.util.List;

public interface LumiereCouponMapper extends MPJBaseMapper<LumiereCoupon> {
    @Select("SELECT DISTINCT st.coupon_id  FROM lumiere_coupon cp RIGHT JOIN lumiere_coupon_strategy st ON cp.id = st.coupon_id ")
    List<Long> usedCoupons();
}
